package com.vm.osm.business.dto.eam.equ;

import com.google.common.base.MoreObjects;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 获取企业自定义属性请求
 *
 * @author Xuerong Xue
 */
@Data
public class GetDiyAttrReq implements Serializable {
    @ApiModelProperty(value = "登陆令牌", hidden = true)
    private String session_id;
    @ApiModelProperty(value = "设备类型（1：通用、2：专业）", required = true)
    @NotNull(message = "设备类型不能为空")
    private Byte equ_type;
    @ApiModelProperty(value = "设备类型Id", required = true)
    @NotEmpty(message = "设备类型Id不能为空")
    private String equ_type_id;

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("session_id", session_id)
                .add("equ_type", equ_type)
                .add("equ_type_id", equ_type_id)
                .toString();
    }
}
